package com.ruoyi.wx.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.mybatis.base.BaseEntity;

/**
 * 公众号应用对象 wx_mp_app
 * 
 * @author ruoyi
 * @date 2023-03-19
 */
public class WxMpApp extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.UUID)
    private String id;

    /** 公众号ID */
    @Excel(name = "公众号ID")
    private String wxId;

    /** 公众号APPID */
    @Excel(name = "公众号APPID")
    private String appId;
    
    /** 公众号密钥 */
    @Excel(name = "公众号密钥")
    private String appSecret;

    /** 公众号token */
    @Excel(name = "公众号token")
    private String token;
    
    /** 公众号二维码 */
    @Excel(name = "公众号二维码")
    private String qrCode;
    
    /** 模板消息ID */
    @Excel(name = "模板消息ID")
    private String oneTemplateId;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setWxId(String wxId) 
    {
        this.wxId = wxId;
    }

    public String getWxId() 
    {
        return wxId;
    }
    public void setAppId(String appId) 
    {
        this.appId = appId;
    }

    public String getAppId() 
    {
        return appId;
    }

	public void setAppSecret(String appSecret) 
    {
        this.appSecret = appSecret;
    }

    public String getAppSecret() 
    {
        return appSecret;
    }
    public void setToken(String token) 
    {
        this.token = token;
    }

    public String getToken() 
    {
        return token;
    }
    public String getQrCode() {
		return qrCode;
	}

	public void setQrCode(String qrCode) {
		this.qrCode = qrCode;
	}

	public String getOneTemplateId() {
		return oneTemplateId;
	}

	public void setOneTemplateId(String oneTemplateId) {
		this.oneTemplateId = oneTemplateId;
	}

	public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("wxId", getWxId())
            .append("appId", getAppId())
            .append("appSecret", getAppSecret())
            .append("token", getToken())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
